package com.brillilab.dao.mapper.experiments;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.experiments.PlateGrid;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 多孔板孔个体 Mapper 接口
 * </p>
 *
 * @author WuMenghao
 * @since 2019-04-16
 */
public interface PlateGridMapper extends BaseMapper<PlateGrid> {

    int insertBatch(@Param("list") List<PlateGrid> plateGrids);

    int deleteByPlateId(@Param("plateId") Long plateId);

    int updateBatch(@Param("list")List<PlateGrid> plateGrids);

    int setIsUsed(@Param("gridIds") List<Long> gridIds,@Param("isUsed") Integer isUsed);
}
